<?php

namespace app\models;

/**
 * This is the model class for table "crm_system_dict".
 */
class CrmSystemDict extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     *  * This is the model class for table "crm_system_dict".
     *
     */
    public static function tableName()
    {
        return 'crm_system_dict';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['id','code_type','code_id','flag'], 'integer'],
            [['code_type_name'], 'string', 'max' => 100],
            [['display_value'], 'string', 'max' => 300],
            [['code_table'], 'string', 'max' => 40],
            [['code_field'], 'string', 'max' => 20],
            [['memo'], 'string'],
            [['id'], 'unique'],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'code_type_name'=>'类别',
            'display_value'=>'内容',
            'memo'=>'拼音简码/备注',
        ];
    }
}
